export function toSecond(statusText?: string) {
    if (!statusText) return 0;
    const timeReg = /(\d\d)\:(\d\d)/
    const res = statusText.match(timeReg)
    if (res && res.length > 1) {
        const [time, m1, s1] = res;
        const second = parseInt(m1) * 60 + parseInt(s1)
        return second;
    }
    return 0;
}
